package svc

import (
	"github.com/zeromicro/go-zero/zrpc"
	"mei-admin/api/internal/config"
	"mei-admin/meirpc/meirpcclient"
)

type ServiceContext struct {
	Config config.Config
	MeiRpc meirpcclient.Meirpc
}

func NewServiceContext(c config.Config) *ServiceContext {
	return &ServiceContext{
		Config: c,
		MeiRpc: meirpcclient.NewMeirpc(zrpc.MustNewClient(c.MeiRpc)),
	}
}
